package com.rabbiter.ordering.entity;



public class OrderItem {
    private Long id;            // 订单项ID
    private String name;        // 菜品名称
    private Double price;   // 单价
    private Integer quantity;   // 数量
    private Boolean isPackage; // 是否套餐
    private String cateName;     // 分类名称
    private String flavor;      // 口味信息
    private String orderId;
    private String status = "未出餐";
    private String tableId;

    public String getTableId() {
        return tableId;
    }

    public void setTableId(String tableId) {
        this.tableId = tableId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    public Boolean getPackage() {
        return isPackage;
    }

    public void setPackage(Boolean aPackage) {
        isPackage = aPackage;
    }

    public String getcateName() {
        return cateName;
    }

    public void setcateName(String cateName) {
        this.cateName = cateName;
    }

    public String getFlavor() {
        return flavor;
    }

    public void setFlavor(String flavor) {
        this.flavor = flavor;
    }

    // 构造方法
    public OrderItem() {}

    // Getter和Setter方法
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    // 其他getter和setter...

    @Override
    public String toString() {
        return "OrderItem{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", price=" + price +
                ", quantity=" + quantity +
                ", isPackage=" + isPackage +
                ", cateName='" + cateName + '\'' +
                ", flavor='" + flavor + '\'' +
                '}';
    }
}
